.<template>
  <div class="layout">
    <el-container class="container">
      <el-aside width="200px">
        <v-aside></v-aside>
        </el-aside>
      <el-container>
        <el-header>
          <router-link to="/login"><el-button>退出登录</el-button></router-link>
          
        </el-header>
        <el-main>
            <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>

  </div>
</template>

<script>
import vAside from './aside'
export default {
    components:{
        vAside
    }
};
</script>

<style>
/* 覆盖element ui样式的方法：给组件的根元素加上一个class，覆盖的样式都已他为父元素 */
.layout .container{
    /* ch:viewport height 视图高度，屏幕高度 */
    /* cw:viewport width 视图高度，屏幕宽度 */
    height:100vh;
}
 .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
    text-align: center;
    line-height: 200px;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;

  }
  
  body > .el-container {
    margin-bottom: 40px;
  }
  
  .el-container:nth-child(5) .el-aside,
  .el-container:nth-child(6) .el-aside {
    line-height: 260px;
  }
  
  .el-container:nth-child(7) .el-aside {
    line-height: 320px;
  }
</style>